package top.yfq.shortlinkweb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.yfq.shortlinkweb.model.po.IdSegmentPO;

/**
 * @author yfq
 * @date 2025/7/18 17:42
 * @description
 */
@Mapper
public interface IdSegmentMapper extends BaseMapper<IdSegmentPO> {

    IdSegmentPO queryIdSegment(@Param("bizTag") String bizTag);

    boolean setMaxId(@Param("bizTag") String bizTag, @Param("maxId") long maxId, @Param("version") int version);
}
